package com.zerosky.crm.dao;


import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.Objective;

/**
 * Invite数据接口
 * 
 * @author zhouzhengxiang;
 * @since 2017-07-08
 */
public interface ObjectiveDAO {
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public Objective getInvite(Map<String,Object> map);

	/**
	 * 新增目标
	 * 
	 * @param map
	 * @return
	 */
	public int addInvite(Objective invite);
	
	/**
	 * 获取个人销售目标
	 * 
	 * @param map
	 * @return
	 */
	public List<Objective> getObjectiveStatisticsByPersonal(Map<String,Object> map);
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public List<Objective> getObjectiveStatisticsByTeam(Map<String,Object> map);
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public List<Objective> getObjectiveStatisticsByBranch(Map<String,Object> map);
	/**
	 * 获取分公司销售目标
	 * 
	 * @param map
	 * @return
	 */
	public List<Objective> getObjectiveStatisticsByDept(Map<String,Object> map);

	/**
	 * 获取个人销售目标
	 * 
	 * @param map
	 * @return
	 */
	public Integer getObjectiveStatisticsByPersonalCount(Map<String,Object> map);
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public Integer getObjectiveStatisticsByTeamCount(Map<String,Object> map);
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public Integer getObjectiveStatisticsByBranchCount(Map<String,Object> map);
	/**
	 * 获取分公司销售目标
	 * 
	 * @param map
	 * @return
	 */
	public Integer getObjectiveStatisticsByDeptCount(Map<String,Object> map);
}
